﻿using AutoMapper;
using PeiYue.Model;
using PeiYue.Model.Dto.Common;
using PeiYue.Model.Dto.Sys;
using PeiYue.Model.Dto.User;
using PeiYue.Model.Models;
using PeiYue.Model.Models.Common;
using PeiYue.Model.Models.Sys;
using PeiYue.Model.Models.User;
using System;
using System.Collections.Generic;
using System.Text;

namespace PeiYue.AutoMapper
{
    public class SysProfile : Profile
    {/// <summary>
     /// 配置构造函数，用来创建关系映射
     /// </summary>
        public SysProfile()
        {
            CreateMap<DicHeaderDao, DicHeaderDto>().ReverseMap();
            CreateMap<DicDetailDao, DicDetailDto>().ReverseMap();
            CreateMap<ImgResDto, ImgResDao>().ReverseMap();
            CreateMap<Department, DepartmentDto>().ReverseMap();
            CreateMap<sysUserInfo, sysUserInfoDto>().ReverseMap();
            CreateMap<Role, RoleDto>().ReverseMap();
            CreateMap<Permission, PermissionDTO>().ReverseMap();
            //CreateMap<PageModel<Permission>, PageModel<PermissionDTO>>();
        }
    }
}
